import instance from '../utils/request'

// 抽取api 查询搜索结果
const getSearchResult = ({ q, per_page, page }) => {
  return instance({
    url: '/v1_0/search',
    method: 'get',
    params: {
      q,
      per_page,
      page
    }
  })
}

// 暴露出去
export { getSearchResult }
